home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / gfx / show / jcosub26.lha / JACOsub / documentation / QuickRef.doc < prev    next >
Text File  |  1996-04-04  |  13KB  |  377 lines

  1. JACOsub Quick Reference
  2. =======================
  3.  
  4. This document serves as a brief summary to JScripts.doc.  Refer to
  5. JScripts.doc for complete details.
  6.  
  7.  
  8. SCRIPT COMPILER COMMANDS
  9. ========================
  10.  
  11. #  (followed by a space) Comment.  The line will be ignored.
  12.  
  13. #C[LOCKPAUSE] <time>
  14.    Force clock to pause at time specified while playing.  Keypress resumes.
  15.  
  16. #D[IRECTIVE][n] <directive string> [optional_name]
  17.    Change default directive n.  n=0 (overall directive) if n omitted.
  18.    n may range from 0 to 20.  The optional_name can be used in timed lines
  19.    in place of the default directive code.  A directive name in a timed
  20.    line must be enclosed in square brackets [], but it should not contain
  21.    brackets in the original name definition.
  22.  
  23. #F[ONT] <n> <fontname.font> <h> [CLEAN or QUICK&DIRTY] [Y/X]
  24.    Set font n to fontname.font, h pixels tall.  n may range from 0 to 9.
  25.    Mono fonts are always QUICK&DIRTY (rendered fast).
  26.    For face colors other than 3, color fonts default to CLEAN (rendered
  27.    one character at a time), unless QUICK&DIRTY is specified.
  28.    Y/X is used to change the aspect ratio from 1/1 (AmigaDOS 2.0+).
  29.  
  30. #H[RES] <HIRES or SUPERHIRES>
  31.    Set resolution mode expected to be used in the script.
  32.  
  33. #I[NCLUDE] <time> <filename>
  34.    Include script file <filename> into the current script, offsetting
  35.    the new script's start time by the time specified.  Offset cannot be
  36.    negative.  Offset units depend on time units set by #TIMERES.
  37.    #F, #P, #Q, and #R in an included script will be ignored.
  38.    The effects of #D, #S, and #T are passed down into included scripts.
  39.  
  40. #P[ALETTE] <color> <r> <g> <b> [palette]
  41.    For specified color register, set RGB intensities (0 to 15).  palette
  42.    defaults to 0 (primary palette), but may be 0 through 9.  Use palettes
  43.    1 - 9 with the CP directive.
  44.  
  45. #Q[UANTIZE][n]
  46.    Eliminate timing gaps between subtitles of less than n time units.
  47.    Number of time units per second is specified by #TIMERES.
  48.  
  49. #R[AMP] <seconds.units>
  50.    Adjust script play for time drift by changing the script's overall
  51.    running time.  Positive ramp adjustments lengthen the play, negative
  52.    adjustments shorten it.  Time units are determined by #TIMERES.
  53.  
  54. #S[HIFT] <[[hours:]minutes:]seconds.units>
  55.    Shift all times in script by the amount specified.  Positive shifts
  56.    delay time events, negative shifts advance them.
  57.  
  58. #T[IMERES] <n>
  59.    Set time resolution of script to n units per second.  Default is 30
  60.    if this command does not appear in the script.
  61. ESCAPE CODES TO EMBED IN TITLES
  62. ===============================
  63.  
  64. \   (If last character in a line) Concatenate.  Assume next line in script
  65.     continues current title.  Leading and trailing spaces in concatenated
  66.     lines are ignored.
  67.  
  68. \n  Newline.  Use to split a title text into multiple lines.  \n codes
  69.     override wordwrapping, but the resulting text substrings might still
  70.     be individually wordwrapped if needed.
  71.  
  72. \{  Display a left brace, which is normally used to begin a non-displaying
  73.     comment embedded in the title.
  74.  
  75. \~  Display a tilde, which is normally used to create a "hard" non-
  76.     wrappable space.
  77.  
  78. \\  Display a backslash, which is normally used to begin an escape code.
  79.  
  80. \D  Insert date here (DD MMM YYYY format).
  81.  
  82. \T  Insert time here (24-hour HH:MM format).
  83.  
  84. \N  Normal.  Display text that follows in "normal" style.  Equivalent to
  85.     the SN directive.
  86.  
  87. \I  Italics. Display text that follows in italics.  Equivalent to the SI
  88.     directive.
  89.  
  90. \B  Boldface.  Display text that follows in boldface (sometimes useful).
  91.     Equivalent to the SB directive.
  92.  
  93. \U  Underline.  Underline text that follows (not useful).  Equivalent to
  94.     the SU directive.
  95.  
  96.     Note: /N, /I, /B, and /U are mutually exclusive.
  97.  
  98. \Cn Color n.  Use face color n for text that follows.  n is a hexadecimal
  99.     digit ranging from 0 to 9 and A to F (or a to f).  Equivalent to the
  100.     CF directive.
  101.  
  102. \Fn Font n.  Use font n (0 to 9) for text that follows.  Equivalent to the
  103.     F directive.
  104. TITLE DIRECTIVES
  105. ================
  106. Directives occur after the stop time is specified.  You may omit the title
  107. directive if you title begins with a non-alphabet character (such as a left
  108. brace for a {comment}), in which case the directive defaults to D.  Defined
  109. directives and their names [enclosed in brackets] are interchangeable.
  110.  
  111. Vertical positioning
  112. --------------------
  113.  
  114.   VA
  115.      Vertical continuation Above previous title, using previous title's
  116.      vertical positioning setting.  Opposite of VU.
  117.  
  118.   VB[n]
  119.      Vertical Bottom, offset from bottom of display by n pixels.  n may
  120.      be omitted (default n, usually 16, can be set with the #D command).
  121.  
  122.   VHn
  123.      Vertical line Height n% of normal.  VH200 makes double-spaced lines.
  124.  
  125.   VL[n]
  126.      Vertical Line position n.  Line height depends on font size.  If n is
  127.      negative or omitted, vertical line position will be where the previous
  128.      timed line started.
  129.  
  130.   VM[n]
  131.      Vertical Middle.  Center vertically between VTn and VBn position.
  132.      n=0 by default, otherwise shifts block up or down n text lines.
  133.  
  134.   VPn
  135.      Vertical Pixel position n.  Baseline of font will be n pixels from
  136.      top of display.
  137.  
  138.   VSn
  139.      Scroll text up at speed n (-6=slowest, 4=fastest).  n is frames per
  140.      raster line if n<0, or raster lines per frame if n>0.
  141.  
  142.   VT[n]
  143.      Vertical Top, offset from top of display by n pixels.  n may be
  144.      omitted (default n, ususally 16, can be set with the #D command).
  145.  
  146.   VU
  147.      Vertical continuation Under previous title, using previous title's
  148.      vertical positioning setting.  Opposite of VA.
  149.  
  150. Horizontal positioning
  151. ----------------------
  152.  
  153.  Margins:
  154.  
  155.   HLn
  156.      Horizontal Left margin n% of display width from left edge.
  157.  
  158.   HRn
  159.      Horizontal Right margin n% of display width from right edge.
  160.  
  161.  Text justification:
  162.  
  163.   JC
  164.      Justify Center.  Text is centered within HLn - HRn constraints.
  165.  
  166.   JF[:p]
  167.      Justify Full.  Aligns left and right edges with the ends of the
  168.      widest line in the text box.  Last line in block is unaffected, except
  169.      to position it Left, Right, or Center (default), when :p is :L, :R, or
  170.      :C, respectively.  JF:U means Unconditional justification -- ALL lines
  171.      in the block will be stretched to fit exactly within the margins.
  172.  
  173.   JL
  174.      Justify Left.  Align left edge of text at the HLn margin position.
  175.  
  176.   JR
  177.      Justify Right.  Align right edge of text at the HRn margin position.
  178.  
  179.  Block justification:
  180.  
  181.   JBC
  182.      Justify Block Center.  Position the text, after wordrwapping, so that
  183.      it is centered within the margins, preserving the text justification.
  184.      To get "AnimEigo" positioning, use JBC with JL.
  185.  
  186.   JBF
  187.      Justify Block Full.  Cancel the effect of any JB directive if one
  188.      happens to be in use as a default directive.
  189.  
  190.   JBL
  191.      Justify Block Left.  Position the text block at the left margin.
  192.  
  193.   JBR
  194.      Justify Block Right.  Position the text block so that the right
  195.      edge is at the right margin, preserving the text justification.
  196.  
  197.  Word wrapping:
  198.  
  199.   W0
  200.      Disable automatic word wrapping.  Warning: text may overflow screen
  201.      boundaries.
  202.  
  203.   W1
  204.      Automatic "smart" word wrapping (default).  Wrap text so that the
  205.      screen area consumed by the title is minimized.
  206.  
  207.   W2
  208.      Automatic "stupid" (generally known as "greedy") word wrapping.
  209.      Fit as much text into a line as possible without regard to appearance
  210.      or screen space consumed.
  211.  
  212. Fonts
  213. -----
  214.  
  215.  Font rendering:
  216.  
  217.   Fn
  218.      Use font n (0 - 9) for the title text.
  219.  
  220.   FQ
  221.      Force title to be rendered Quick&Dirty.  Mono-color fonts and
  222.      colorfonts using color 3 are always quick anyway.
  223.  
  224.   FC
  225.      Force title to be rendered Clean (1 character at a time) to avoid font
  226.      shadow overlap interference problems.rendering.  Mono-color fonts and
  227.      colorfonts using color 3 will still be rendered fast.
  228.  
  229.   FD
  230.      Force Default text rendering.  Used to override a global #DFC or #DFF
  231.      command.
  232.  
  233.   FBn
  234.      Use blitter (n=1) to copy overlapping time range title imagery between
  235.      buffers, or generate such titles afresh (n=0) on each buffer.
  236.  
  237.   FOn[:a]
  238.      Generate Font Outline n pixels wide, optionally use antialias color a.
  239.      Warning:  This slows the program down considerably.
  240.  
  241.   FSdn
  242.      Generate Font Shadow in direction d (one of 8 compass directions
  243.      N, S, E, W, NW, NE, SW, SE), n pixels deep.
  244.  
  245.  Font style (may also be set with \ codes in the title text):
  246.  
  247.   SN
  248.      Normal style (typical default).
  249.  
  250.   SI
  251.      Italic.
  252.  
  253.   SB
  254.      Bold (using the JACOsub font, this looks best with color 3).
  255.  
  256.   SU
  257.      Underline (ugly!  Not recommended).
  258.  
  259.  Color
  260.  
  261.   CFn
  262.      Color Fontface n.
  263.  
  264.   CBn
  265.      Color Background n.  Screen is cleared to color n prior to rendering
  266.      anything to it.  Useful for creating a genlock-opaque background if
  267.      n is nonzero.
  268.  
  269.   CPn
  270.     Load Color Palette n (0 to 9, set with #PALETTE command) at the start
  271.     time of this title.  If you can see the palette change after the
  272.     display is updated, precede your alternate palette lines with a "dummy"
  273.     short-duration blank screen (containing a hard space) using your
  274.     alternate palette.
  275.  
  276.   CS[L]n[:s[:c]]
  277.     Color Shaded box with n-pixel margin around text, using shade style :s
  278.     (:0=pattern, :1=solid color), using optional color :c (normal default
  279.     is :2 [black], can be re-set with a #D command).  Titles that overlap
  280.     in time AND use the CS directive will be surrounded by a SINGLE box; if
  281.     CSL is used, a box will appear around individual lines (including
  282.     segments resulting from wordwrapping).  n=0 disables shading.
  283.  
  284. Genlock fader control
  285. ---------------------
  286.  
  287.   GBn[Tm]
  288.     Genlock Background n% of saturation in m/60 seconds.  m=0 if Tm is
  289.     omitted.  n=0 is a transparent background.
  290.  
  291.   GGn[Tm]
  292.     Genlock Graphics n% of saturation in m/60 seconds.  m=0 if Tm omitted.
  293.     n=100 is full-on graphics.
  294.  
  295.   Note:  Do not use the G directives in the global #D command.
  296.  
  297. Special effects
  298. ---------------
  299. Default speed [s]=8 for all effects; [s] may range from 1 to 64.  If [s]=0
  300. or [s]=?, the speed will be random.
  301. d=direction: V=vertical, H=horizontal, O=open, C=close, L=left, R=right,
  302. U=up, D=down
  303.  
  304.   EBd[s]
  305.     Blinds; d may be V or H.
  306.  
  307.   ED[s]
  308.     Dissolve.  Three speeds: slow (s=0,1), medium (s=2,3), faster (s=4).
  309.  
  310.   EEdd[s]
  311.     Eyelid; dd may be VO, VC, HO, or HC.
  312.  
  313.   EId[s]
  314.     Iris; d may be O or C.
  315.  
  316.   EN
  317.     Normal transition (default).  New view replaces old.  Also E0.
  318.  
  319.   EPn[:s]
  320.     Palette fade from current palette to palette n; [:s] may be 0 to 255.
  321.  
  322.   EP+a[:b[:p]]
  323.   EP-a[:b[:p]]
  324.     Palette cycle forward (+) or backward (-) from colors a to b (default
  325.     max color index) using period [:p] video fields (1-255, default 2) per
  326.     cycle step.
  327.  
  328.   ERd[s]
  329.     Roll old view off while rolling new view in; d may be U, D, L, R.
  330.  
  331.   ESd[s]
  332.     Scroll new view up (d=U) or old view down (d=D).
  333.  
  334.   EWd[s]
  335.     Wipe; d may be U, D, L, R.
  336.  
  337.   E?[s]
  338.     Random transition; s may also be 0 or ? for random speeds.
  339.  
  340. Directives using the title string for parameters
  341. ------------------------------------------------
  342.   Note:  Do not use R directives in the global #D command.
  343.  
  344.   RLB <ILBM file name> [<x offset %> <y offset %>]
  345.     Load a background IFF brush into the video screen for the time interval
  346.     specified by this line's start and stop time.  Current screen colors
  347.     will be used; the IFF colors will be ignored.  x and y are percents of
  348.     screen width and height to offset the center of the bitmap from the
  349.     center of the screen.  Through overlapping time ranges, as many as
  350.     40 images may be loaded onto a single screen, memory permitting.
  351.     Text can appear concurrently with the bitmaps.
  352.  
  353.   RLG <ILBM file name>
  354.     Load an IFF graphic file into its own screen, using the file's own
  355.     resolution and colors.  Text cannot appear concurrently.
  356.  
  357.   RDB <left> <top> <right> <bottom>
  358.     Draw a solid rectangle in the current font color in units specified as
  359.     percentages of display width and height.
  360.  
  361.   RX <ARexx script name>
  362.     Execute the ARexx script name that follows the RX directive.  Do not
  363.     specify other directives on the same line, and have no more than one
  364.     RX directive per time event.
  365.  
  366. Default directives
  367. ------------------
  368.  
  369.   D or D0
  370.     Default 0verall.  To be used if no other directives are used.  The
  371.     behavior of D can be set with the #D command.
  372.  
  373.   Dn
  374.     Default alternate n (1 - 20).  Use these for "shortcuts" to long
  375.     directive strings that you like to use repeatedly.  Set with the #D
  376.     command.
  377.